home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sources / xless / xless141.z / xless141 / xless-1.4.1 / actions.c < prev    next >
C/C++ Source or Header  |  1992-10-20  |  883b  |  37 lines

  1. #include "xless.h"
  2.  
  3. static void QuitAction ARGS((Widget, XButtonEvent *, String *, Cardinal *));
  4. static void HelpAction ARGS((Widget, XButtonEvent *, String *, Cardinal *));
  5.  
  6. XtActionsRec actions[] = {
  7.   { "quit",        (XtActionProc )QuitAction },
  8. /* { "search",        (XtActionProc )SearchAction }, */
  9. /* { "search_next",        (XtActionProc )SearchNextAction }, */
  10. /* { "editor",        (XtActionProc )EditorAction }, */
  11. /* { "reload",        (XtActionProc )ReloadAction }, */
  12. /* { "change_file",        (XtActionProc )ChangeFileAction }, */
  13. /* { "new_window",        (XtActionProc )NewWindowAction }, */
  14.   { "help",        (XtActionProc )HelpAction },
  15. };
  16. Cardinal numactions = XtNumber(actions);
  17.  
  18. static void
  19. QuitAction(w, e, p, n)
  20. Widget w;
  21. XButtonEvent *e;
  22. String *p;
  23. Cardinal *n;
  24. {
  25.   QuitFunction();
  26. }
  27.  
  28. static void
  29. HelpAction(w, e, p, n)
  30. Widget w;
  31. XButtonEvent *e;
  32. String *p;
  33. Cardinal *n;
  34. {
  35.   PopupHelp(w, NULL, NULL);
  36. }
  37.